package com.hnas.hnt.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import com.hnas.hnt.dao.SubJectDicDAO;
import com.hnas.hnt.orm.SubJectDic;

@Component("subJectDicService")
@Transactional(rollbackFor = Exception.class, propagation = Propagation.REQUIRED)
public class SubJectDicServiceImpl implements SubJectDicService {
	
	@Autowired
	private SubJectDicDAO subJectDicDAO;

	@Override
	public List<SubJectDic> getSubJectDics() {
		return this.subJectDicDAO.getSubJectDics();
	}
}
